import java.util.regex.Pattern;

/**
 * @author ghp
 * @title 正则表达式匹配
 */
class Solution {
    public boolean isMatch(String s, String p) {
        return Pattern.matches(p, s);
    }
}